<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>

    <script>
        function showDialog() {
            var id =${sessionScope.user.id};
            var iWidth = 300; //窗口宽度
            var iHeight = 180;//窗口高度
            var iTop = (window.screen.height - iHeight) / 2;
            var iLeft = (window.screen.width - iWidth) / 2;
            window.showModalDialog('alterPwd.jsp?id=' + id, window, 'dialogHeight:'+iHeight+';dialogWidth:'+iWidth+';dialogLeft:'+iLeft+';dialogTop:'+iTop+';');
        }
 /*       window.open('alterPwd.jsp?id=' + id,
            '_blank',
            'height=' + iHeight + ',width=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no, menubar=no, location=no,resizable=no,status=no,scroll=no');*/

    </script>
    <style>
        body {
            background: url("../image/title.jpg") no-repeat;
            height: 100%;
            width: 100%;
            overflow: hidden;
            background-size: 100%;
        }
    </style>
</head>
<body>
<div style="margin: 110px 15px 0px">
    <div style="float: right">
        <font color="white">欢迎:${sessionScope.user.nickName}</font>&nbsp;&nbsp;&nbsp;&nbsp;
        <a style="text-decoration: none" href="javascript:void(0);" onclick="showDialog();"><font color="white">
            修改密码</font></a>
    </div>
    <div style="float: left;">
        <a target="_parent" style="text-decoration: none" href="${pageContext.request.contextPath}/exit">
            <font color="white">退出系统</font></a>
    </div>
</div>
</body>
</html>
